package com.example.myapplication.utils;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.provider.Settings;
import android.provider.SettingsSlicesContract;

/*
 ** 跳转系统设置页面
 */
public class JumpSysPageUtils {
    //跳转到系统当前设置页面
    public static void goToAppSetting(Activity context) {
        Intent intent = new Intent();
        intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
        Uri aPackage = Uri.fromParts("package", context.getPackageName(), null);
        intent.setData(aPackage);
        context.startActivity(intent);
    }
}
